<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="manageUsers.aspx.cs" Inherits="_default" Title="Untitled Page" %>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPane" Runat="Server">
 <div class="title">  <asp:Literal ID="Literal1" text="<%$Resources:LocalizedText,AdminUserManagement_Title %>" runat="server" /></div>
    <div id="txt">
    <p>
    <asp:Literal ID="Literal2" text="<%$Resources:LocalizedText,AdminUserManagement_Instructions %>" runat="server" />
    <asp:TextBox ID="userSearchText" CssClass="defaultinput" runat="Server" /> 
    
    <asp:Button ID="UserSearchButton" OnClick="OnUserSearchButtonClick" Text="Search" runat="Server" />&nbsp;&nbsp;<br /><br />
    <asp:GridView ID="userGridView" DataKeyNames="UserName" runat="server" Width="100%" OnRowCommand="OnUserGridViewRowCommand" GridLines="Vertical" />
        <EmptyDataTemplate>
            <asp:Label ID="Label1" runat="Server"></asp:Label>
        </EmptyDataTemplate>
        <HeaderStyle CssClass="gridheader" />
        <RowStyle CssClass="gridrow" />
        <AlternatingRowStyle CssClass="altgridrow" />
    </asp:GridView>
    <br />
    <asp:Label ID="Desc" runat="Server">
    </asp:Label>
<asp:Panel ID="UserDetailsPanel" Visible="False" runat="Server">
        <div class="cssrow">
			<span class="cssrowlabel"><asp:Literal ID="Literal3" text="<%$Resources:LocalizedText,AdminUserManagement_UserName %>" runat=server /></span>
			<span class="cssrowformw"><asp:Literal ID="userNameLit" runat="Server" /></span><br /><br />
		</div>
		<div class="cssrow">
			<span class="cssrowlabel"><asp:Literal ID="Literal4" text="<%$Resources:LocalizedText,AdminUserManagement_EmailAddress %>" runat=server /></span>
			<span class="cssrowformw"><asp:Literal ID="emailAddressLit" runat="Server" /></span><br /><br />
		</div>
		<div class="cssrow">
			<span class="cssrowlabel"><asp:Literal ID="Literal5" text="<%$Resources:LocalizedText,AdminUserManagement_Roles %>" runat=server /></span><br /><br />
			<span class="cssrowformw">
            <asp:Repeater ID="UserRoleList" runat="Server">
            <itemtemplate>
            <asp:CheckBox runat="server" 
                          id="CheckBox1" 
                          autopostback="true" 
                          oncheckedchanged="RoleMembershipChanged" 
                          text='<%# Container.DataItem.ToString()%>' 
                          checked='<%# Roles.IsUserInRole(userNameLit.Text,Container.DataItem.ToString()) %>'/>
                            <br/>   
                            </itemtemplate>
            </asp:Repeater>			
			
			<asp:CheckBoxList ID="rolesCheckBoxList" runat="Server" />
			
			</span>
		</div>
			
    </asp:Panel>
</asp:Content>

